//
//  StringUtils.m
//  NumLot
//
//  Created by luotao on 13-3-2.
//
//

#import "StringUtils.h"

@implementation StringUtils

+(NSData *)string2Data:(NSString *)src{
    return [self string2Data:src withEncode:NSUTF8StringEncoding];
}

+(NSData *)string2Data:(NSString *)src withEncode:(NSInteger)encode{
   return [src dataUsingEncoding:encode];
}

@end
